package com.kancy.springbootdocker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class SpringBootDockerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootDockerApplication.class, args);
    }

    @GetMapping("index")
    public Object index(){
        String srcUrl = "https://gitee.com/kancy666/spring-boot-docker";
        return String.format("welcome to app , current time is %s , src is %s", System.currentTimeMillis(), srcUrl);
    }

}
